package org.jeecg.modules.yw.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.yw.entity.WorkerSta;

import java.util.List;

@Mapper
public interface WorkerStaMapper extends BaseMapper<WorkerSta> {

    IPage<WorkerSta> pageInfo(Page<WorkerSta> page, @Param(value = "startDate") String startDate,
                              @Param(value = "endDate") String endDate,
                              @Param(value = "attendmonth") String attendmonth,
                              @Param("areas") String[] areas);

    List<WorkerSta> listInfo(@Param(value = "ids")String[] idss, @Param(value = "startDate") String startDate,
                             @Param(value = "endDate") String endDate,
                             @Param(value = "attendmonth") String attendmonth,
                             @Param("areas") String[] areas);
}
